﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Vit.Web.Mvc.DataAnnotations;

namespace Vit.Web.Models
{
    public class CategoryProperty
    {
        [Key]
        [StringLength(50)]
        [Required]
        [Column(Order = 1)]
        public string CategoryItemName { get; set; }

        [Key]
        [StringLength(50)]
        [Required]
        [Column(Order = 2)]
        public string PropertyName { get; set; }

        [StringLength(50)]
        public string DataType { get; set; }
        [StringLength(50)]
        public string Editor { get; set; }
        public int Order { get; set; }
        [MaxLength]
        public string DefaultValue { get; set; }

        public virtual CategoryItem Category { get; set; }
    }
}